import request from '@/utils/request'

const BASE_URL = ''

export function fetchList(query) {
  return request({
    url: `${BASE_URL}/nuclearSafetyRanking`,
    method: 'get',
    params: query
  })
}
// 获取异常督办数据
export function getSupervisionTableList(query) {
  return request({
    url: `${BASE_URL}/HistoryAlarmIndex.asmx/getSupervisionTableList`,
    method: 'post',
    params: query
  })
}
// 获取核安全数据
export function getSafetyData(query) {
  return request({
    url: `${BASE_URL}/SafetyOrderIndex.asmx/getSafetyData`,
    method: 'post',
    params: query
  })
}
// 获取核安全数据详情
export function getSafetyDetail(query) {
  return request({
    url: `${BASE_URL}/SafetyOrderDetail.asmx/getSafetyDetail`,
    method: 'post',
    params: query
  })
}
// 获取历史数据数据
export function getHistoryList(query) {
  return request({
    url: `${BASE_URL}/HistoryData.asmx/getHistoryList`,
    method: 'post',
    params: query
  })
}

// 获取异常查询数据
export function getAbnormalList(query) {
  return request({
    url: `${BASE_URL}/HistoryAlarmIndex.asmx/getAbnormalList`,
    method: 'post',
    params: query
  })
}
// 获取异常处理数据HistoryAlarmIndex.asmx/getAbnormal
export function getAbnormal(query) {
  return request({
    url: `${BASE_URL}/HistoryAlarmIndex.asmx/getAbnormal`,
    method: 'post',
    params: query
  })
}
// 处理异常
export function insertAlarmHandle(query) {
  return request({
    url: `${BASE_URL}/HistoryAlarmIndex.asmx/insertAlarmHandle`,
    method: 'post',
    params: query
  })
}
// 获取源状态数据
export function getSourceRecordList(query) {
  return request({
    url: `${BASE_URL}/HistoryRadStatusLst.asmx/getRadRecordList`,
    method: 'post',
    params: query
  })
}
// 获取出入库状态数据
export function getStockRecordList(query) {
  return request({
    url: `${BASE_URL}/HistoryStockLst.asmx/getStockRecordList`,
    method: 'post',
    params: query
  })
}